package com.qiaofang.applet.service.member.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@ApiModel("登录返回DTO")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MemberLoginDto extends BaseDto {

    @ApiModelProperty("会员ID")
    private String id;

    @ApiModelProperty("小程序端会员ID，同会员id")
    private String memberId;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("手机号")
    private String mobilePhone;

    @ApiModelProperty("真实姓名")
    private String realName;

    @ApiModelProperty("身份证")
    private String idCard;

    @ApiModelProperty("性别: 女/男")
    private String gender;

    @ApiModelProperty("注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date registerTime;

    @ApiModelProperty("最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastLoginTime;

    @ApiModelProperty("城市名称")
    private String cityName;

    @ApiModelProperty("城市编码")
    private String cityCode;

    @ApiModelProperty("会员类型: 普通用户/经纪人")
    private String memberTypeName;

    @ApiModelProperty("会员类型: 1:普通用户 2:经纪人")
    private Integer memberType;

    @ApiModelProperty("经纪人uuid")
    private String employeeUniqueUuid;

    @ApiModelProperty("公司uuid")
    private String companyUuid;

    @ApiModelProperty("token")
    private String token;

    @ApiModelProperty("微信openid")
    private String openid;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("员工名称")
    private String employeeName;

    @ApiModelProperty("用户的头像url")
    private String headPortrait;

    @ApiModelProperty("是否关注公众号 1:关注 2:未关注")
    private Integer isFollow;

    @ApiModelProperty("公众号AppSecret")
    private String oaAppSecret;

    @ApiModelProperty("公众号引导关注url")
    private String officialAccountUrl;
}
